package com.ken.astroboy.model;

public class ScheduledTaskItem {
	
	public static final int READY = 0;
	public static final int PAUSE = 1;
	public static final int UNKNOWN = 2;
	
	//定时时间，采用cron格式
	private String scheduledTime;
	//执行job逻辑处理的类
	private String jobClassName;
	//任务运行状态：0-就绪；1-暂停
	private int taskStatus;
	//传入Job的用户参数
	private ScheduledTaskCustomData customData;
	
	public ScheduledTaskItem() {
		customData = new ScheduledTaskCustomData();
	}

	public String getScheduledTime() {
		return scheduledTime;
	}

	public String getJobClassName() {
		return jobClassName;
	}

	public void setJobClassName(String jobClassName) {
		this.jobClassName = jobClassName;
	}

	public void setScheduledTime(String scheduledTime) {
		this.scheduledTime = scheduledTime;
	}

	public int getTaskStatus() {
		return taskStatus;
	}

	public void setTaskStatus(int taskStatus) {
		this.taskStatus = taskStatus;
	}

	public ScheduledTaskCustomData getCustomData() {
		return customData;
	}

	public void setCustomData(ScheduledTaskCustomData customData) {
		this.customData = customData;
	}
}
